package org.eenie.commonlib.component.di.modules

import androidx.lifecycle.ViewModel
import co.zsmb.rainbowcake.dagger.ViewModelKey
import org.eenie.commonlib.ui.arch.ExampleViewModel
import dagger.Binds
import dagger.Module
import dagger.multibindings.IntoMap

@Module
abstract class SubModule {

    @Binds
    @IntoMap
    @ViewModelKey(ExampleViewModel::class)
    abstract fun bindUserViewModel(exampleViewModel: ExampleViewModel): ViewModel

}